﻿namespace area;

public class Retangle : Shape
{
    private float a;
    private float b;
    public float A
    {
        get { return this.a; }
        private set
        {
            a = value;
        }
    }

    public float B
    {
        get { return this.b; }
        private set
        {
            b = value;
        }
    }

    public Retangle(float a, float b)
    {
        this.a = a;
        this.b = b;
    }

    public void sayType()
    {
       Console.WriteLine("Retengle"); 
    }

    public float getArea()
    {
        return a * b;
    }
    
}